Skip to content

feat(sdk): Add executionStartTimestamp to InvocationBaseInfo#719

Merged
SilanHe merged 3 commits into
mainfrom
feat/add-execution-start-timestamp
Jul 15, 2026
Merged

feat(sdk): Add executionStartTimestamp to InvocationBaseInfo#719
SilanHe merged 3 commits into
mainfrom
feat/add-execution-start-timestamp

Conversation

@SilanHe

@SilanHe SilanHe commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes: Add optional executionStartTimestamp field to InvocationBaseInfo so it is available on all onInvocation* hook parameters (InvocationInfo and InvocationEndInfo). The timestamp is derived from
initialExecutionEvent.StartTimestamp when available (should always be available).

Updated all test fixtures constructing InvocationInfo or InvocationEndInfo to include the new field.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SilanHe
SilanHe force-pushed the feat/add-execution-start-timestamp branch from 080c630 to 0bc8ae3 Compare July 14, 2026 23:51
@SilanHe SilanHe changed the title feat(plugin): Add executionStartTimestamp to InvocationBaseInfo feat(sdk): Add executionStartTimestamp to InvocationBaseInfo Jul 14, 2026
@SilanHe SilanHe closed this Jul 14, 2026
@SilanHe SilanHe reopened this Jul 14, 2026
@SilanHe
SilanHe marked this pull request as ready for review July 15, 2026 16:48
ParidelPooya
ParidelPooya previously approved these changes Jul 15, 2026

@ParidelPooya ParidelPooya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested happy path — the only test touching the real with-durable-execution.ts code path asserts executionStartTimestamp: undefined in both cases. The branch where a real timestamp gets set is never exercised end-to-end; other updated tests just hardcode the field on manually-built fixtures.

Comment thread packages/aws-durable-execution-sdk-js/src/with-durable-execution.ts Outdated
Add optional executionStartTimestamp field to InvocationBaseInfo so it
is available on all onInvocation* hook parameters (InvocationInfo and
InvocationEndInfo). The timestamp is derived from
initialExecutionEvent.StartTimestamp when available.

Updated all test fixtures constructing InvocationInfo or
InvocationEndInfo to include the new field.
@SilanHe
SilanHe force-pushed the feat/add-execution-start-timestamp branch from 0bc8ae3 to d64a45c Compare July 15, 2026 17:12
@SilanHe
SilanHe merged commit 76f5cbd into main Jul 15, 2026
15 checks passed
@SilanHe
SilanHe deleted the feat/add-execution-start-timestamp branch July 15, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants